package org.apache.cxf.examples;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

public class ApplicationId {
	private String extSystem;
	private String extId;
	
	
	public String getExtSystem() {
		return extSystem;
	}
	public void setExtSystem(String extSystem) {
		this.extSystem = extSystem;
	}
	public String getExtId() {
		return extId;
	}
	public void setExtId(String extId) {
		this.extId = extId;
	}
	/**
	 * @see java.lang.Object#equals(Object)
	 */
	public boolean equals(Object object) {
		if (!(object instanceof ApplicationId)) {
			return false;
		}
		ApplicationId rhs = (ApplicationId) object;
		return new EqualsBuilder().append(this.extId, rhs.extId).append(this.extSystem, rhs.extSystem).isEquals();
	}
	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return new HashCodeBuilder(-26499847, 158472873).appendSuper(super.hashCode()).append(this.extId).append(this.extSystem).toHashCode();
	}
	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this).append("extSystem", this.extSystem).append("extId", this.extId).toString();
	}
	
}
